import { FieldType } from 'choerodon-ui/pro/lib/data-set/enum';
import { DataSetProps } from 'choerodon-ui/pro/lib/data-set/DataSet';


const getTableProps = (): DataSetProps => ({
  name: 'table-pro-expand',
  autoQuery: true,
  fields: [
    {name: 'key', type: FieldType.number, label: "键"},
    {name: 'name', type: FieldType.string, label: "姓名"},
    {name: 'age', type: FieldType.number, label: "年龄"},
    {name: 'address', type: FieldType.string, label: "地址"},
    {name: 'description', type: FieldType.string, label: "描述"},
  ],
  transport: {
    read: {
      url: '/api/multiple-sorter-table',
      method: 'get',
    },
  },
});

export default getTableProps;